﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
namespace MRSite.Entity
{
    /// <summary>
    /// 贡献值转换共建值记录
    /// </summary>
    [Table(Name = "score_tozican_return")]
    public class ScoreToZiCanReturn : Entity
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "user_name")]
        public String user_name { get; set; }


       

        /// <summary>
        ///    返的共建值
        /// </summary>
        [Column(Name = "golds")]
        public decimal golds { get; set; }

        
             /// <summary>
        ///    返的积分
        /// </summary>
        [Column(Name = "points")]
        public decimal points { get; set; }

        /// <summary>
        ///  当天的用户总贡献值
        /// </summary>
        [Column(Name = "score_today")]
        public decimal score_today { get; set; }

        /// <summary>
        ///  结算时的用户总贡献值
        /// </summary>
        [Column(Name = "score_total")]
        public decimal score_total { get; set; }

        /// <summary>
        ///  当天的贡献值的共建值换算比例 （1个贡献值可获得的共建值）
        /// </summary>
        [Column(Name = "bili")]
        public decimal bili { get; set; }

        /// <summary>
        ///  添加
        /// </summary>
        [Column(Name = "addtime")]
        public DateTime addtime { get; set; }


        /// <summary>
        /// 公排id
        /// </summary>
        [Column(Name = "gpid")]
        public int gpid { get; set; }

        /// <summary>
        /// 第几天
        /// </summary>
        [Column(Name = "qishu")]
        public int qishu { get; set; }

        /// <summary>
        /// 报单号
        /// </summary>
        [Column(Name = "orderno")]
        public string orderno { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "remark")]
        public String remark { get; set; }

         /// <summary>
        /// 统计的时间节点
        /// </summary>
        [Column(Name = "yreturntime")]
        public DateTime? yreturntime { get; set; }
        

        /// <summary>
        /// 发放日期
        /// </summary>
        [Column(Name = "returntime")]
        public DateTime? returntime { get; set; }

        /// <summary>
        /// 状态 1返还 0未返完
        /// </summary>
        [Column(Name = "status")]
        public int status { get; set; }

        /// <summary>
        /// 类别 0：每日正常释放；1：前2999名实名认证额外奖励
        /// </summary>
        [Column(Name = "type")]
        public int type { get; set; }

        /// <summary>
        /// 是否释放到可用共建值
        /// </summary>
        [Column(Name = "is_shifang")]
        public int is_shifang { get; set; }

        /// <summary>
        /// 释放时间
        /// </summary>
        [Column(Name = "shifang_time")]
        public DateTime? shifang_time { get; set; }
    }
}
